// 权限组
import request from "@/utils/https/requests";

// 列表
export function permissionGroupList(data: any) {
    return request({
        url: "/permissionGroup/list", method: "post", data,
    });
}

// 添加
export function postAddPermissionGroup(data: any) {
    return request({
        url: "/permissionGroup/postAdd", method: "post", data,
    });
}

// 修改
export function postModPermissionGroup(data: any) {
    return request({
        url: `/permissionGroup/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeletePermissionGroup(id: string) {
    return request({
        url: `/permissionGroup/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeletePermissionGroup = (id) => {
    return request({
        url: `/permissionGroup/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function permissionGroupDetail(id: string) {
    return request({
        url: `/permissionGroup/detail/${id}`, method: "post",
    });
}